﻿using System.Collections.Generic;

namespace Game
{
    public class SceneObjectFinderComponent : IComponent
    {
        private List<ScenePetEntity> _scenePetList = new List<ScenePetEntity>();
        private List<SceneMonsterEntity> _sceneMonsterList = new List<SceneMonsterEntity>();
        
        public void Dispose()
        {
            _scenePetList = null;
            _sceneMonsterList = null;
        }

        public void AddMonster(SceneMonsterEntity sceneMonster)
        {
            _sceneMonsterList.Add(sceneMonster);
        }

        public void RemoveMonster(SceneMonsterEntity sceneMonster)
        {
            _sceneMonsterList.Remove(sceneMonster);
        }

        public void AddPet(ScenePetEntity scenePet)
        {
            _scenePetList.Add(scenePet);
        }
        
        public void RemovePet(ScenePetEntity scenePet)
        {
            _scenePetList.Remove(scenePet);
        }

        public List<SceneMonsterEntity> GetSceneMonsterList()
        {
            return _sceneMonsterList;
        }

        public List<ScenePetEntity> GetScenePetList()
        {
            return _scenePetList;
        }
    }
}